import Vue from "vue";
import Vuex from 'vuex'
import user from "@/store/modules/user"
import persistence from "vuex-uniapp-persistence";

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        safeArea: uni.getWindowInfo().safeArea,
        capButton: uni.getMenuButtonBoundingClientRect(),
    },
    // mutations: {},
    // actions: {},
    plugins: [persistence()],
    getters: {},
    modules: { user }
})

export default store